<?php
class HomeController extends MyController
{
	function actionIndex()
	{
		$this->render("index", $this->data);
	}
	
	function actionAdvancedsearch()
	{
		$dichvu_id = Yii::app()->getRequest()->getPost("dichvu_id");
		$pcategory_id = Yii::app()->getRequest()->getPost("pcategory_id");
		$quan_id = Yii::app()->getRequest()->getPost("quan_id");
		$ngay_dang = Yii::app()->getRequest()->getPost("ngay_dang");
		$gia_1 = Yii::app()->getRequest()->getPost("gia_1");
		$gia_2 = Yii::app()->getRequest()->getPost("gia_2");
	
	
		//$this->redirect(array());
		$this->redirect(array(
			'search/advancedsearch', 
			"dichvu_id"=>$dichvu_id, 
			"pcategory_id" => $pcategory_id,
			"quan_id" => $quan_id,
			"ngay_dang" => $ngay_dang,
			"gia_1" => $gia_1,
			"gia_2" => $gia_2
		));
	
	}
}